export type OptionsType = {
  value: string;
  text: string;
};
export type QuestionRadioPropsType = {
  title?: string;
  options?: OptionsType[];
  isVertical?: boolean;
  disabeled?: boolean;
  value?: string;
  onChange?: (newProps: QuestionRadioPropsType) => void;
};

export type ChartPropsType = {
  stat: Record<string, number | string>[];
};

export const QuestionRadioDefaultProps: QuestionRadioPropsType = {
  title: "单选框",
  options: [
    { text: "选项1", value: "1" },
    { text: "选项2", value: "2" },
    { text: "选项3", value: "3" },
  ],
  value: "",
  isVertical: false,
};
